<?php
use_helper('I18N');
/** @var Array of menu items */ $items = $sf_data->getRaw('items');
?>

<ul class="adminheader ui-widget ui-helper-clearfix">
    <?php
    foreach ($items as $key => $item):
        if (sfJqueryDash::hasPermission($item, $sf_user)):
            ?>
    <li>
        <a href="<?php echo url_for($item['url']) ?>" title="<?php echo __($item['name']); ?>">
            <div class="dashicon adminheader ui-corner-all ui-allow-hover ui-widget-content">
                        <?php echo image_tag($item['image'], array('alt' => __($item['name']))); ?>
                <br><span><?php echo __($item['name']); ?></span>
            </div>
        </a>
    </li>
        <?php
        endif;
    endforeach;
    ?>
</ul>